Skip to content

feat: product license counts and cards - #274

Open
edospadoni wants to merge 13 commits into
mainfrom
feat/legacy-products-counter
Open

edospadoni wants to merge 13 commits into
mainfrom
feat/legacy-products-counter

Conversation

@edospadoni

@edospadoni edospadoni commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Sales needs the product counts per partner: the licenses of what this portal manages, plus the "Installed products" figures of the old my for the systems that have not migrated.

Native licenses (products)

  • NethSecurity: every system of type nsec
  • NethVoice: every nethvoice instance bound to a user domain
  • NethService: every user domain of a cluster with webtop, mail, roundcubemail, nextcloud or samba bound to it, counted once however many applications share it
  • An application counts for the organization it is assigned to, or for the one of its system while unassigned

Legacy (legacy_products)

  • Migration 065: nethservice, nethsecurity, nethvoice columns on legacy_systems_by_org
  • PUT /api/legacy-systems/counts accepts the three counters, optional; same match on system_products as the old my, migrated/deleted/disabled systems excluded

Where they are returned (no new route, same scope and access checks as the counters beside them)

  • GET /systems/totals: products, legacy_products
  • Distributor / reseller stats: products, products_hierarchy, legacy_products, legacy_products_hierarchy
  • Customer stats: products

Frontend

  • License cards on the dashboard (new Licenses section) and on distributor, reseller and customer pages: one card per product with licenses, the total without a link, then a row for the current licenses and one for the legacy ones, each shown only when there are any
  • Each row has an info tooltip that explains only what it counts; current licenses link to Systems / Applications filtered by product and company, legacy ones to legacy.my.nethesis.it, current NethService links nowhere
  • Card titles in sentence case; dashboard section headings stay uppercase
  • Date pickers: the mute drawer and the change history filter use NeDatePicker and NeDateRangeFilter of vue-components, with translated labels; @vuepic/vue-datepicker is removed

Logto sign-in pages (sync/configs/sign-in/)

  • default.css restyles every Logto page after the Nebula login box, with custom CSS only: Poppins, panel spacing and logo size of the mockup, an icon on the sign-in button, "Forgot your password?" on the right, the title under the logo hidden; checked on sign-in, reset password and 2-step verification, light and dark, desktop and phone width
  • It matches the stable suffix of Logto's class names, since the hashed prefixes change on each release (the old button.odkpo_large rule no longer matched)
  • New page background with a dark variant: sync puts background_dark_path in place of {{.BackgroundImageDark}}; the soft edge is a gradient instead of a blur filter, which rendered with bands
  • Brand colors #0369A1 / #0EA5E9 (sky-700 / sky-500); Logto recomputes them on the page, darkening the dark one for white text, so the CSS sets them again

Deploy

  • Migration 065 before the backend (already applied on QA and prod)
  • Sign-in pages: run sync from this version with the configs of NethServer/my-config#1, which add background_dark_path and the new colors. An older sync ignores background_dark_path and leaves the dark theme without a background

Reference:

The legacy sync now pushes, next to the total, how many of the systems
still on the old my run NethService, NethSecurity and NethVoice: the
"Installed products" figures sales reads on the legacy reseller page.

Stored in legacy_systems_by_org (migration 065) and exposed as
legacy_products in /systems/totals and in the reseller and distributor
stats. The three fields are optional on the PUT, so a sync that does
not send them yet keeps working.
@edospadoni
edospadoni deployed to feat/legacy-products-counter - my-backend-qa PR #274 November 26, 2026 10:02 — with Render Active
@github-actions

Copy link
Copy Markdown
Contributor

🔗 Redirect URIs Added to Logto

The following redirect URIs have been automatically added to the Logto application configuration:

Redirect URIs:

  • https://my-proxy-qa-pr-274.onrender.com/login-redirect

Post-logout redirect URIs:

  • https://my-proxy-qa-pr-274.onrender.com/login

These will be automatically removed when the PR is closed or merged.

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

🤖 my.nethesis.it API structural change detected

Preview documentation

Structural change details

Modified (5)

  • GET /customers/{id}/stats
    • 200 response modified
      • application/json content type modified
        • data property modified
          • products property added
  • GET /distributors/{id}/stats
    • 200 response modified
      • application/json content type modified
        • data property modified
          • legacy_products, legacy_products_hierarchy, products, products_hierarchy properties added
  • GET /resellers/{id}/stats
    • 200 response modified
      • application/json content type modified
        • data property modified
          • legacy_products, legacy_products_hierarchy, products, products_hierarchy properties added
  • GET /systems/totals
    • 200 response modified
      • application/json content type modified
        • data property modified
          • legacy_products, products properties added
  • PUT /legacy-systems/counts
    • application/json content type modified
      • counts property modified
        • nethservice, nethsecurity, nethvoice properties added
Powered by Bump.sh

@edospadoni
edospadoni deployed to feat/legacy-products-counter - my-backend-qa PR #274 November 27, 2026 07:01 — with Render Active
@edospadoni
edospadoni deployed to feat/legacy-products-counter - my-backend-qa PR #274 November 30, 2026 07:02 — with Render Active
@edospadoni edospadoni added this to the v1.0.0 milestone Nov 30, 2026
@edospadoni
edospadoni deployed to feat/legacy-products-counter - my-backend-qa PR #274 December 1, 2026 07:01 — with Render Active
Counts the licenses of the systems and applications managed here, next
to the legacy ones: NethSecurity is every nsec system, NethVoice every
nethvoice instance bound to a user domain, NethService every user
domain with webtop, mail, roundcubemail, nextcloud or samba bound to
it, counted once per cluster however many applications share it.

Exposed as products in /systems/totals and in the distributor,
reseller and customer stats, scoped like the counters beside them.
/systems/totals now also returns legacy_products, which the handler
left out of its response.
@edospadoni
edospadoni deployed to feat/legacy-products-counter - my-backend-qa PR #274 December 1, 2026 08:57 — with Render Active
@edospadoni edospadoni changed the title feat(backend): legacy systems counter by product feat(backend): product license counts, native and legacy Dec 1, 2026
Show the NethVoice, NethSecurity and NethService licenses on the
dashboard, in a Licenses section between Overview and Portals, and on
the distributor, reseller and customer pages, from the products and
legacy_products counts of the API.

A product with only current or only legacy licenses gets a card with
its counter, linked to its list or to the legacy my; one with both
shows the total with a linked row for each. Current NethService
licenses link nowhere: they count user domains, which no list shows.
Systems and Applications now take the product and type filters from
the URL, together with the company ones.

Assisted-by: Claude Code:Opus 5.5
@edospadoni
edospadoni deployed to feat/legacy-products-counter - my-frontend-qa PR #274 December 1, 2026 17:08 — with Render Active
Card titles were forced to uppercase, against the sentence case of the
design system. They now show as written, from CounterCard and the
report panels to the system, cluster and contact cards. The section
headings of the dashboard keep their uppercase, as labels.

Assisted-by: Claude Code:Opus 5.5
@edospadoni
edospadoni deployed to feat/legacy-products-counter - my-frontend-qa PR #274 December 1, 2026 17:13 — with Render Active
The dashboard section headings take the tertiary neutral color of the
side menu group labels, so the uppercase labels share one color and
differ only in size. The category of a change history row is data,
not a heading: it shows in sentence case, as its label is written.

Assisted-by: Claude Code:Opus 5.5
@edospadoni
edospadoni deployed to feat/legacy-products-counter - my-frontend-qa PR #274 December 1, 2026 17:26 — with Render Active
@andre8244 andre8244 changed the title feat(backend): product license counts, native and legacy feat: product license counts and cards Dec 1, 2026
@andre8244

Copy link
Copy Markdown
Collaborator

update deploy

Auto-updated .render-build-trigger files to ensure all services
are deployed in PR preview environments.

🤖 Generated by GitHub Actions
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

🚀 Build triggers updated!

All .render-build-trigger files have been automatically updated to ensure fresh deployments of all services in the PR preview environment.

@edospadoni
edospadoni deployed to feat/legacy-products-counter - my-frontend-qa PR #274 December 1, 2026 17:37 — with Render Active
@edospadoni
edospadoni deployed to feat/legacy-products-counter - my-backend-qa PR #274 December 1, 2026 17:37 — with Render Active
@edospadoni
edospadoni deployed to feat/legacy-products-counter - my-collect-qa PR #274 December 1, 2026 17:37 — with Render Active
@edospadoni
edospadoni deployed to feat/legacy-products-counter - my-frontend-qa PR #274 December 2, 2026 07:01 — with Render Active
@edospadoni
edospadoni deployed to feat/legacy-products-counter - my-backend-qa PR #274 December 2, 2026 07:01 — with Render Active
@edospadoni
edospadoni deployed to feat/legacy-products-counter - my-collect-qa PR #274 December 2, 2026 07:01 — with Render Active
The license cards show the logo of their product, sized as in the
application card, in place of the receipt icon: CounterCard gets an
icon slot for an image. The dashboard sections sit a little closer.

Assisted-by: Claude Code:Opus 5.5
@edospadoni
edospadoni deployed to feat/legacy-products-counter - my-frontend-qa PR #274 December 2, 2026 14:12 — with Render Active
@edospadoni
edospadoni deployed to feat/legacy-products-counter - my-frontend-qa PR #274 December 3, 2026 07:01 — with Render Active
@edospadoni
edospadoni deployed to feat/legacy-products-counter - my-backend-qa PR #274 December 3, 2026 07:01 — with Render Active
@edospadoni
edospadoni deployed to feat/legacy-products-counter - my-collect-qa PR #274 December 3, 2026 07:01 — with Render Active
@edospadoni
edospadoni deployed to feat/legacy-products-counter - my-frontend-qa PR #274 December 3, 2026 08:38 — with Render Active
Each licensed product now gets a single card, whose total is plain
text: a row lists the current licenses and one the legacy ones, each
shown only when there are any, and only the rows link. The separate
legacy-only card is gone.

The tooltip moves from the card title to each row, so it explains
only what that row counts.

Assisted-by: Claude Code:Opus 5.5
The mute drawer and the change history filter now use NeDatePicker
and NeDateRangeFilter of @nethesis/vue-components instead of
@vuepic/vue-datepicker, which is uninstalled along with its styles and
the helpers only it needed.

A composable passes the locale and the translated labels to both, as
their defaults are English.

Assisted-by: Claude Code:Opus 5.5
@edospadoni
edospadoni deployed to feat/legacy-products-counter - my-frontend-qa PR #274 December 3, 2026 14:37 — with Render Active
Restyle the Logto pages after the login box of the Nebula Design
System, with custom CSS only: Poppins, the panel spacing and logo size
of the mockup, an icon on the sign-in button and a new page background,
which now has a dark variant. The CSS matches the stable part of
Logto's class names, as the hashed prefixes change on each release.

sync puts the dark background in place of a new {{.BackgroundImageDark}}
placeholder, from the background_dark_path of the branding. The
backgrounds draw the soft edge of their shape with a gradient instead
of a blur filter, which rendered with visible bands.

The brand colors become sky-700 and sky-500. Logto recomputes them on
the page, darkening the dark one for white text, so the CSS sets them
again.

Assisted-by: Claude Code:Opus 5.5

This branch was successfully deployed

4 active (outdated) deployments
feat/legacy-products-counter - my-frontend-qa PR #274 — 68fca84f Deployed Dec 3, 2026 by edospadoni
feat/legacy-products-counter - my-collect-qa PR #274 — 6eb5137b Deployed Dec 3, 2026 by edospadoni
feat/legacy-products-counter - my-backend-qa PR #274 — 6eb5137b Deployed Dec 3, 2026 by edospadoni
feat/legacy-products-counter - my-proxy-qa PR #274 — 6eb5137b Deployed Dec 3, 2026 by edospadoni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants